package com.code.config;

import com.code.bean.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * 属性赋值
 *
 * @author wangjie
 * @version V1.0
 * @date 2020/1/6
 */
@PropertySource(value = {"classpath:/user.properties"})
@Configuration
public class PropertyValuesConfig {

    @Bean
    public User user(){
        return new User();
    }
}
